<div class="st-limite">
    <div class="st-cp-pg-sobre">        
        <h2>
            <img class="imgAspas" src="<?php echo $this->urlbase.'/public/media/images/icone_titulo.png'?>" alt="<?php echo $this->titulo; ?>"/>
                <?php echo $this->result['DMT_NOM']; ?>
            <img class="imgAspas" src="<?php echo $this->urlbase.'/public/media/images/icone_titulo.png'?>" alt="<?php echo $this->titulo; ?>"/>
        </h2>
        <p><?php echo nl2br($this->result['DMT_TXT']); ?></p>      
        <div class="imgsDermato">
            <div class="linha">
            <?php 
                //$imgs = glob('public/upload/demarto/*_g_*_tb.*');
                //foreach($imgs as $key => $img) { 
                foreach ($this->galeria as $row) {
                    $id = $row['GAL_IDIMG'];
                    $temp = explode('.', $id);
                    $id = $temp[0];
                
                     $this->dir = 'public/upload/demarto/';
                    $img = glob($this->dir.$id.'.*');
                    foreach ($img as $src) $id = $src;
            ?>
                <img src="<?php echo $this->urlbase.'/'.$src;?>" alt="<?php echo $this->titulo; ?>"/>
            <?php } ?>
            </div>
        </div>
    </div>
</div>